﻿global using Devonline.AspNetCore.Communication;
global using Devonline.Core;

namespace Devonline.Communication.Client;

/// <summary>
/// 客户端配置
/// </summary>
public class ClientSetting
{
    /// <summary>
    /// 传输交互方式
    /// </summary>
    public TransportType TransportType { get; set; } = TransportType.NewtonsoftJson;
    /// <summary>
    /// 连接的服务器端地址
    /// </summary>
    public string? Host { get; set; }
    /// <summary>
    /// 当前客户端编号
    /// </summary>
    public string? ClientId { get; set; }
    /// <summary>
    /// 默认的消息接收者
    /// </summary>
    public string? Receiver { get; set; }
    /// <summary>
    /// 客户端上报心跳间隔, 单位: 秒
    /// </summary>
    public int MonitorInterval { get; set; } = AppSettings.UNIT_SECONDS_A_MINUTE;
}
